package com.sziit.se.highconcurrency.order.application.service;

import com.sziit.se.highconcurrency.order.application.entity.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dongchunkeng
 * @since 2022-11-09
 */
public interface IOrderDetailService extends IService<OrderDetail> {
    List<OrderDetail> getAllData();

    Boolean insertOrderDetail(
            String orderId,
            String productId,
            int amount
    );

    List<OrderDetail> getProductByOrderId(String orderId);

    OrderDetail getProductByOrderIdAndProductId(String orderId, String productId);
}
